﻿using crip.Common;
using crip.Models;

namespace crip.Services.IRepositorys
{
    public interface IEventRepository:IBaseRepository<Event>
    {
        //添加事件
        Task<bool> AddEventAsync(Event myevent);
        //模糊搜索
        Task<PageList<Event>> GetEventsAsync(string? keyword, string? orderby, bool? desc, int pageNumber, int pageSize);
        //通过AreaId删除所属全部事件
        void DeleteEventsByAreaId(Guid areaId);
        //根据id查找event
        Task<Event> GetEventByEventIdAsync(Guid? guid);
        //状态机
       // Task CheckStatusAsync();
    }
}
